package com.hbnu.test.www;

import java.util.Scanner;

public class JudgeDays {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入年 月 日");
        int year = 0, month = 0, day = 0;
        year = scan.nextInt();
        month = scan.nextInt();
        day = scan.nextInt();
        int[] arr =new int[13];
        arr[0] = 0;
        arr[1]=arr[3]=arr[5]=arr[7]=arr[10]=arr[12]=31;
        arr[4]=arr[6]=arr[8]=arr[9]=arr[11]=30;
        if((year%4==0&&year%100!=0)||year%400==0){
            arr[2] = 29;
        }
        else{
            arr[2] = 28;
        }
        int days = 0;
        int i = 0;
        for(i = 1;i<= month;i++){
            days += arr[i-1];
        }
        days += day;
        System.out.print(days);
    }
}
